package com.example.hibernatedemo.dao;

import com.example.hibernatedemo.entity.Car;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarRepositoty extends JpaRepository<Car, Long> {

    //查询所有，其他接口自行尝试或查文档
    List<Car> findAll();
}
